package com.wy.vo;

import org.springframework.data.domain.Page;

import java.util.List;

public class PageVo {

    private List rows;
    private Long total;

    public PageVo(){}

    public PageVo(Page page){
        this.total=page.getTotalElements();
        this.rows=page.getContent();
    }


    public List getRows() {
        return rows;
    }

    public void setRows(List rows) {
        this.rows = rows;
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
    this.total = total;
}
}
